﻿<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" autoFlush="true"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>   
            <span class="title1">礼品分类</span>
        </td>
        <td align="right">总数:<b><c:out value="${cresultSize}"/></b>&nbsp;&nbsp;</td>
    </tr>
</table>    
<display:table name="list" class="its" id="list">
    <display:column property="id" title="ID" />
    <display:column property="name" title="名称" />
    <display:column property="email" title="E-mail" />
    <display:column title="操作">
    	<c:url var="modifyUrl" value="/shopcategory.mrqa">
    		<c:param name="action" value="get"/>
    		<c:param name="categoryId" value="${list.id}"/>
    	</c:url>
    	<a href="<c:out value="${modifyUrl}"/>">修改</a> 
    </display:column>
</display:table>
<div align="right">
	<input type="button" name="addBtn" value="增加分类" onclick="addCat(this)"/>
</div>

<script type="text/javascript">
		var contextPath = "<%=request.getContextPath()%>";
    function addCat(pForm)
    {
        var url = contextPath+"/shopcategory.mrqa?action=preadd";
        document.location.href = url;
    }
</script>